package com.dongjiantong.quarantine.serviceImpl;

import com.dongjiantong.mybatis.BaseService;
import com.dongjiantong.quarantine.model.DjtButcherReports;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * Created by mz on 18/11/17.
 *
 */
public interface DjtButcherReportsReadService extends BaseService<DjtButcherReports>{

    /**
     * 查询单据详情
     * @param id 主键id
     * @return DjtButcherReports
     */
    DjtButcherReports findById(Long id);

    /**
     * 获取当前单据状态
     * @param id 单据主键id
     * @return Integer status
     */
    Integer findStatusById(Long id);

    /**
     * 屠宰端分页查询
     * @param pageNo 页码
     * @param pageSize 每页条数
     * @param map 参数
     * @return PageInfo<DjtButcherReports>
     */
    PageInfo<DjtButcherReports> pagingForButcher(Integer pageNo, Integer pageSize, Map<String , Object> map);

    /**
     * 政府端的分页查询
     * @param pageNo 页码
     * @param pageSize 每页多少条
     * @param map 参数
     * @return PageInfo<DjtButcherReports>
     */
    PageInfo<DjtButcherReports> pagingForGOV(Integer pageNo,Integer pageSize,Map<String , Object> map);

    /**
     * 根据入场的单据好查询 屠宰检疫单据的id
     * @param admissionId 入场的单据的id
     * @return Long
     */
    Long checkIsExist(Long admissionId);
}
